<div class="doc-item" id="doc-1319"><h2 class="doc-item-name">set-pprint-dispatch<span class="namespace">(clojure.contrib.pprint)</span></h2><ul class="var-arglists"><li>(<span class="var-name">set-pprint-dispatch</span>  function)</li></ul><div class="var-docstring"><p>Set the pretty print dispatch function to a function matching (fn [obj] ...)
where obj is the object to pretty print. That function will be called with *out* set
to a pretty printing writer to which it should do its printing.

For example functions, see *simple-dispatch* and *code-dispatch* in 
clojure.contrib.pprint.dispatch.clj.</p></div><div class="var-source"><pre>; clojure/contrib/pprint/pprint_base.clj:216
(defn set-pprint-dispatch  
  [function]
  (def *print-pprint-dispatch* function)
  nil)</pre></div><div class="license"><p>Copyright (c) Rich Hickey. All rights reserved.</p><p>The use and distribution terms for this software are covered by the <a href="http://opensource.org/licenses/eclipse-1.0.php">Eclipse Public License 1.0</a>, which can be found in the file
          epl-v10.html at the root of this distribution. By using this software
          in any fashion, you are agreeing to be bound by the terms of this
          license. You must not remove this notice, or any other, from this
          software.</p></div></div>